package com.ericsson.resourceplanner.dto;

import java.util.Date;

public class EriproDto {

	private String signum_id;
	private String emp_name;
	private String region_code;
	private String domain_name;
	private String proj_name;
	private String customer_name;
	private String curr_status;
	private double proj_id;
	private double fte_hrs;
	private Date startdate;
	private Date enddate;
	
	
	public String getSignum_id() {
		return signum_id;
	}
	public void setSignum_id(String signum_id) {
		this.signum_id = signum_id;
	}
	public String getEmp_name() {
		return emp_name;
	}
	public void setEmp_name(String emp_name) {
		this.emp_name = emp_name;
	}
	public String getRegion_code() {
		return region_code;
	}
	public void setRegion_code(String region_code) {
		this.region_code = region_code;
	}
	public String getDomain_name() {
		return domain_name;
	}
	public void setDomain_name(String domain_name) {
		this.domain_name = domain_name;
	}
	public String getProj_name() {
		return proj_name;
	}
	public void setProj_name(String proj_name) {
		this.proj_name = proj_name;
	}
	public String getCustomer_name() {
		return customer_name;
	}
	public void setCustomer_name(String customer_name) {
		this.customer_name = customer_name;
	}
	public String getCurr_status() {
		return curr_status;
	}
	public void setCurr_status(String curr_status) {
		this.curr_status = curr_status;
	}
	public double getProj_id() {
		return proj_id;
	}
	public void setProj_id(double proj_id) {
		this.proj_id = proj_id;
	}
	public double getFte_hrs() {
		return fte_hrs;
	}
	public void setFte_hrs(double fte_hrs) {
		this.fte_hrs = fte_hrs;
	}
	public Date getStartdate() {
		return startdate;
	}
	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}
	public Date getEnddate() {
		return enddate;
	}
	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((curr_status == null) ? 0 : curr_status.hashCode());
		result = prime * result
				+ ((customer_name == null) ? 0 : customer_name.hashCode());
		result = prime * result
				+ ((domain_name == null) ? 0 : domain_name.hashCode());
		result = prime * result
				+ ((emp_name == null) ? 0 : emp_name.hashCode());
		result = prime * result + ((enddate == null) ? 0 : enddate.hashCode());
		long temp;
		temp = Double.doubleToLongBits(fte_hrs);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		temp = Double.doubleToLongBits(proj_id);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result
				+ ((proj_name == null) ? 0 : proj_name.hashCode());
		result = prime * result
				+ ((region_code == null) ? 0 : region_code.hashCode());
		result = prime * result
				+ ((signum_id == null) ? 0 : signum_id.hashCode());
		result = prime * result
				+ ((startdate == null) ? 0 : startdate.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		EriproDto other = (EriproDto) obj;
		if (curr_status == null) {
			if (other.curr_status != null)
				return false;
		} else if (!curr_status.equals(other.curr_status))
			return false;
		if (customer_name == null) {
			if (other.customer_name != null)
				return false;
		} else if (!customer_name.equals(other.customer_name))
			return false;
		if (domain_name == null) {
			if (other.domain_name != null)
				return false;
		} else if (!domain_name.equals(other.domain_name))
			return false;
		if (emp_name == null) {
			if (other.emp_name != null)
				return false;
		} else if (!emp_name.equals(other.emp_name))
			return false;
		if (enddate == null) {
			if (other.enddate != null)
				return false;
		} else if (!enddate.equals(other.enddate))
			return false;
		if (Double.doubleToLongBits(fte_hrs) != Double
				.doubleToLongBits(other.fte_hrs))
			return false;
		if (Double.doubleToLongBits(proj_id) != Double
				.doubleToLongBits(other.proj_id))
			return false;
		if (proj_name == null) {
			if (other.proj_name != null)
				return false;
		} else if (!proj_name.equals(other.proj_name))
			return false;
		if (region_code == null) {
			if (other.region_code != null)
				return false;
		} else if (!region_code.equals(other.region_code))
			return false;
		if (signum_id == null) {
			if (other.signum_id != null)
				return false;
		} else if (!signum_id.equals(other.signum_id))
			return false;
		if (startdate == null) {
			if (other.startdate != null)
				return false;
		} else if (!startdate.equals(other.startdate))
			return false;
		return true;
	}
	
	
}
